package com.zhonghui.wms.service.impl;

import com.zhonghui.wms.domain.WmsOutboundApplicationDetails;
import com.zhonghui.wms.mapper.WmsOutboundApplicationDetailsMapper;
import com.zhonghui.wms.service.IWmsOutboundApplicationDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 智能仓储WMS-出库申请-关联订单Service业务层处理
 *
 * @author zhonghui
 * @date 2022-05-23
 */
@Service
public class WmsOutboundApplicationDetailsServiceImpl implements IWmsOutboundApplicationDetailsService
{
    @Autowired
    private WmsOutboundApplicationDetailsMapper wmsOutboundApplicationDetailsMapper;

    /**
     * 查询智能仓储WMS-出库申请明细
     *
     * @param id 智能仓储WMS-出库申请明细主键
     * @return 智能仓储WMS-出库申请明细
     */
    @Override
    public WmsOutboundApplicationDetails selectWmsOutboundApplicationDetailsById(Long id)
    {
        return wmsOutboundApplicationDetailsMapper.selectWmsOutboundApplicationDetailsById(id);
    }

    /**
     * 查询智能仓储WMS-出库申请明细列表
     *
     * @param wmsOutboundApplicationDetails 智能仓储WMS-出库申请明细
     * @return 智能仓储WMS-出库申请明细
     */
    @Override
    public List<WmsOutboundApplicationDetails> selectWmsOutboundApplicationDetailsList(WmsOutboundApplicationDetails wmsOutboundApplicationDetails)
    {
        return wmsOutboundApplicationDetailsMapper.selectWmsOutboundApplicationDetailsList(wmsOutboundApplicationDetails);
    }

    /**
     * 新增智能仓储WMS-出库申请明细
     *
     * @param wmsOutboundApplicationDetails 智能仓储WMS-出库申请明细
     * @return 结果
     */
    @Override
    public int insertWmsOutboundApplicationDetails(WmsOutboundApplicationDetails wmsOutboundApplicationDetails)
    {
        return wmsOutboundApplicationDetailsMapper.insertWmsOutboundApplicationDetails(wmsOutboundApplicationDetails);
    }

    /**
     * 修改智能仓储WMS-出库申请明细
     *
     * @param wmsOutboundApplicationDetails 智能仓储WMS-出库申请明细
     * @return 结果
     */
    @Override
    public int updateWmsOutboundApplicationDetails(WmsOutboundApplicationDetails wmsOutboundApplicationDetails)
    {
        return wmsOutboundApplicationDetailsMapper.updateWmsOutboundApplicationDetails(wmsOutboundApplicationDetails);
    }

    /**
     * 批量删除智能仓储WMS-出库申请明细
     *
     * @param ids 需要删除的智能仓储WMS-出库申请明细主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundApplicationDetailsByIds(Long[] ids)
    {
        return wmsOutboundApplicationDetailsMapper.deleteWmsOutboundApplicationDetailsByIds(ids);
    }

    /**
     * 删除智能仓储WMS-出库申请明细信息
     *
     * @param id 智能仓储WMS-出库申请明细主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundApplicationDetailsById(Long id)
    {
        return wmsOutboundApplicationDetailsMapper.deleteWmsOutboundApplicationDetailsById(id);
    }
}
